package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.YanBao2;
import com.example.demo.repository.YanBao2Repository;

@Service
public class YanBao2Service extends BaseService<YanBao2, Integer> {
	@Autowired 
	private YanBao2Repository yanbao2Dao;
	
	public List<YanBao2> findByYanBaoId(Integer id){
		return yanbao2Dao.findByYanBaoId(id);
		
	}

	public YanBao2 findByYanBaoId2(Integer yanBaoid) {
		// TODO Auto-generated method stub
		return yanbao2Dao.findByYanBaoId2(yanBaoid);
	}
}
